/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.test.entity;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.kaaction.common.persistence.DataEntity;

/**
 * testEntity
 * @author test
 * @version 2017-04-26
 */
public class MmDad extends DataEntity<MmDad> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private List<MmSon> mmSonList = Lists.newArrayList();		// 子表列表
	
	public MmDad() {
		super();
	}

	public MmDad(String id){
		super(id);
	}

	@Length(min=0, max=64, message="name长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public List<MmSon> getMmSonList() {
		return mmSonList;
	}

	public void setMmSonList(List<MmSon> mmSonList) {
		this.mmSonList = mmSonList;
	}
}